@prefixCls: ~"c7ncd-pipeline-stage";

@boxShadaw: 0 2px 6px 0 rgba(65, 91, 201, 0.12);

.@{prefixCls} {
  position: relative;
  height: 100%;
  width: 200px;
  display: flex;
  flex-direction: column;
  &-btnGroups {
    position: absolute;
    right: 11px;
    top: 10px;
    display: flex;
    align-items: center;
    > i.icon {
      font-size: 17px;
      transition: 0.2s;
      border-radius: 50%;
    }
    &-delete {
      opacity: 0;
      color: var(--primary-color);
      display: none;
      &:hover {
        box-shadow: @boxShadaw;
      }
    }
  }
  &-stageType {
    width: 40px;
    flex-grow: 0;
    background: #f0f8ff;
    font-size: 13px;
    font-weight: 400;
    border-right: 1px solid #d5e0ff;
    &-ci {
      color: #6887e8;
      background: #f0f4ff;
    }
    &-cd {
      color: #4d90fe;
      background: #f0f8ff;
    }
  }
  &-stageName {
    flex: 1;
    background: #fff;
    line-height: 38px;
    text-align: left;
    padding-left: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  > footer {
    position: relative;
  }
  &-header {
    width: 200px;
    margin: 0 auto;
    display: flex;
    height: 40px;
    border-radius: 2px;
    cursor: all-scroll;
    z-index: 2;
    transition: 0.2s;
    box-shadow: @boxShadaw;
    border-style: solid;
    border-color: rgba(65, 91, 201, 0.24);
    border-width: 1px;

    &:hover {
      border-color: var(--primary-color);
      .@{prefixCls}-btnGroups {
        &-delete {
          opacity: 1;
          display: block;
        }
      }
    }
    > div {
      line-height: 40px;
      text-align: center;
    }
  }
}
